package com.foreknow.demo6;

public class Example3 {
    public static void m1(){
        System.out.println("m1...........");
    }

    public static void  m2(int number,String name) {
        System.out.println(number + name);
    }

    public  static  void m3(String[] str){
        for (int i = 0;i<str.length;i++){
            System.out.println(str[i]);
        }
    }

    public static String m4(){
        String name = "张三";
        return  name;
    }

    public static String[] m5(){
        String[] names ={"fender","gibson"};
        return names;
    }

    public static void main(String[] args) {
        //调用m1....m5方法
        Example3.m1();
        Example3.m2(1001,"fender");
        String[] names = {"fender","gibson"};
        Example3.m3(names);
        String s =Example3.m4();
        System.out.println(s);
        String[] ss =Example3.m5();
        for (int i = 0;i<ss.length;i++){
            System.out.println(ss[i]);
        }
    }
}
